package org.example.demosql.SQL.Entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Schema(description = "用户信息")
@Data
@TableName("useremail")
public class UserEmail {
    @Schema(description = "用户ID")
    private int id;
    @Schema(description = "用户名")
    private String name;
    @Schema(description = "年龄")
    private int age;
    @Schema(description = "邮箱")
    private String email;

    // JSON格式返回
    @Override
    public String toString() {
        return "UserEmail{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", email='" + email + '\'' +
                '}';
    }
}
